import request from "@/utils/request";

// 获取列表
export function getAllList(query) {
  return request({
    url: "/samPoiHouSur/getPage",
    method: "get",
    params: query,
  });
}

// 查看
export function getDetail(id) {
  return request({
    url: "/samPoiHouSur/findById",
    method: "get",
    params:id
  });
}

// 获取所有抽样点
export function getSamPoiList(query) {
  return request({
    url: "/samPoiData/getSamPoiList",
    method: "get",
    params: query,
  });
}

// 改变计算审核状态
export function changeStatus(data) {
  return request({
    url: "/samPoiHouSur/isDamnificationCount",
    method: "post",
    data: data,
  });
}

// 保存审核
export function auditSave(data) {
  return request({
    url: "/samPoiHouSur/check",
    method: "post",
    data: data,
  });
}

//修改
export function updateAudit(query) {
  return request({
    url: "/samPoiHouSur/update",
    method: "post",
    data: query,
  });
}

// 批量删除
export function deleteAudit(id) {
  return request({
    url: "/samPoiHouSur/delete/"+id,
    method: "post",
  });
}